package phone;

public class Main {
    public static void main(String[] args) {
        newphone newphone = new newphone();
        newphone.call();
        newphone.message();
        newphone.games();
    }
}

class phone{
    public void call(){
        System.out.println("打电话");
    }
    public void message(){
        System.out.println("发短信");
    }
    public void games(){
        System.out.println("playgame");
    }
}

class newphone extends phone{
    @Override // 重写校验注解   提高程序的可读性，代码优雅
    public void call(){
        super.call();
        System.out.println("视频通话");
    }
    @Override
    public void message(){
        super.message();
        System.out.println("发送图片");
        System.out.println("发送视频");
    }
}
